package activity.study.initmysql.test.simple;


import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.ExecutionListener;
import org.activiti.engine.delegate.TaskListener;

public class CsdnUserTaskTaskListner implements /*TaskListener,*/ ExecutionListener {
    /*@Override
    public void notify(DelegateTask delegateTask) {

        System.out.println("聊天结束啦111");
        *//*
          String EVENTNAME_CREATE = "create";
          String EVENTNAME_ASSIGNMENT = "assignment";
          String EVENTNAME_COMPLETE = "complete";
          String EVENTNAME_DELETE = "delete";
         *//*
        String eventName = delegateTask.getEventName();
        if (EVENTNAME_CREATE.equals(eventName)) System.out.println("create");
        if (EVENTNAME_ASSIGNMENT.equals(eventName)) System.out.println("assignment");
        if (EVENTNAME_COMPLETE.equals(eventName)) System.out.println("complete");
        if (EVENTNAME_DELETE.equals(eventName)) System.out.println("delete");
    }*/

    @Override
    public void notify(DelegateExecution execution) {
        System.out.println("聊天结束啦222");
    }
}
